<template>
	<el-form ref="form" class="plr-1" label-position="top" :model="form" :disabled="saving">
		<el-form-item prop="padding_lr" label="左右边距(px)">
			<el-input
				v-model="form.padding_lr"
				placeholder="请输入边距"
				oninput="value=value.replace(/[^\d^\.]/g,'')"
				@blur="form.padding_lr = $event.target.value"
			/>
		</el-form-item>
		<el-form-item prop="padding_tb" label="上下边距(px)">
			<el-input
				v-model="form.padding_tb"
				placeholder="请输入边距"
				oninput="value=value.replace(/[^\d^\.]/g,'')"
				@blur="form.padding_tb = $event.target.value"
			/>
		</el-form-item>
		<el-form-item prop="content">
			<cl-wang-editor ref="content" :height="400" v-model.trim="form.content" />
		</el-form-item>
	</el-form>
</template>
<script>
export default {
	props: {
		saving: Boolean,
		view: {
			type: Object,
			default: () => ({})
		}
	},
	data() {
		return {
			form: this.view.options
		};
	}
};
</script>
